package com.homedo.odin.solution.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.homedo.odin.solution.model.entity.UserActionStatis;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> Mapper接口 </p>
 *
 * @author ZhangLei
 * @date 2018-05-15
 * @Description:
 */
public interface UserActionStatisMapper extends BaseMapper<UserActionStatis> {

    List<HashMap> getStatistics(@Param("positions") List<String> positions,
            @Param("businessId") Long businessId,
            @Param("businessType") String businessType);

    /**
     * 生成昨天的统计数据
     */
    void generateStatisticsOfYesterday();
}